home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 146
/
(Vol 146) Jan 07 2012.iso
/
Games
/
thrust_2.swf
/
scripts
/
frame_21
/
PlaceObject2_92_535
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
Wrap
Text File
|
2012-01-07
|
670b
|
32 lines
onClipEvent(enterFrame){
if(_root.bullets == true)
{
this._x += _root.bulletx / 3 + _root.bulletxtrax;
this._y -= _root.bullety / 3 + _root.bulletxtray;
if(this._x > 535)
{
_root.bullets = false;
}
if(_root.land.hitTest(_X,_Y,true))
{
_root.bullets = false;
}
if(this._x < 15)
{
_root.bullets = false;
}
if(this._y > 385)
{
_root.bullets = false;
}
if(this._y < 50)
{
_root.bullets = false;
}
}
if(_root.bullets == false && this._visible)
{
this._visible = false;
}
}